package cn.gnp.framework.core.util;

import java.util.ArrayList;

public class RestfulMessage {
	
	private boolean success;
	private String message;
	private ArrayList<Object> data;
	private Object error;
	private ArrayList<Object> code;
	private int total;


	public RestfulMessage() {
		this.success = false;
		this.data = new ArrayList<Object>();
	}


	/**
	 * @return the success
	 */
	public boolean isSuccess() {
		return success;
	}


	/**
	 * @param success the success to set
	 */
	public void setSuccess(boolean success) {
		this.success = success;
	}


	/**
	 * @return the message
	 */
	public String getMessage() {
		return message;
	}


	/**
	 * @param message the message to set
	 */
	public void setMessage(String message) {
		this.message = message;
	}


	/**
	 * @return the data
	 */
	public ArrayList<Object> getData() {
		return data;
	}


	/**
	 * @param data the data to set
	 */
	public void setData(ArrayList<Object> data) {
		this.data = data;
	}


	/**
	 * @return the error
	 */
	public Object getError() {
		return error;
	}


	/**
	 * @param error the error to set
	 */
	public void setError(Object error) {
		this.error = error;
	}


	/**
	 * @return the code
	 */
	public ArrayList<Object> getCode() {
		return code;
	}


	/**
	 * @param code the code to set
	 */
	public void setCode(ArrayList<Object> code) {
		this.code = code;
	}


	/**
	 * @return the total
	 */
	public int getTotal() {
		return total;
	}


	/**
	 * @param total the total to set
	 */
	public void setTotal(int total) {
		this.total = total;
	}
}
